package com.sk.bilibili.adapter.pager.main;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

import com.sk.bilibili.adapter.pager.BaseFragmentAdapter;
import com.sk.bilibili.utils.DataUtils;
import com.sk.bilibili.view.fragment.main.collect.FollowThemFragment;
import com.sk.bilibili.view.fragment.main.home.dynamic.HotFragment;
import com.sk.bilibili.view.fragment.main.home.dynamic.SynthesizeFragment;
import com.sk.bilibili.view.fragment.main.home.dynamic.VideoFragment;
import com.sk.bilibili.view.fragment.member.FavoritesFragment;

public class CollectFragmentAdapter extends BaseFragmentAdapter {

    public CollectFragmentAdapter(@NonNull FragmentManager fm) {
        super(fm);
        initData();
    }

    @Override
    protected String[] getTitles() {
        return "视频,追番,追剧".split(",");
    }

    @Override
    protected Fragment[] getFragments() {
        Integer memberId = DataUtils.getMemberId();
        Fragment[] fragments=new Fragment[3];
        fragments[0]=new FavoritesFragment(memberId);
        fragments[1]=new FollowThemFragment(2);
        fragments[2]=new FollowThemFragment(3);
        return fragments;
    }

}